<template>
  <div class="home">
    <etoak-header :menu-list="menuList" />
  </div>
</template>

<script>
import EtoakHeader from "../components/EtoakHeader"
export default {
  name: 'Home',
  components: {
    EtoakHeader
  },
  data() {
    return {
      menuList: []
    }
  },

  methods: {
    getMenuList() {
      this.menuList = [
        {name: "车辆添加", index: '/car/add'},
        {name: "车辆列表", index: '/car/info'}
      ]
    }
  },

  created() {
    this.getMenuList()
  }
}
</script>
